#!/bin/bash

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: bash copy.sh"
	exit 1
}


# copy sql
#echo "begin copy sql "
#cp ../sql/ry_20231130.sql ./mysql/db
#cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
#echo "begin copy html "
#cp -r ../tower-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy tower-gateway "
cp ../tower-gateway/target/tower-gateway.jar ./smart-tower-base-service/tower-gateway
cp -r ../tower-gateway/target/lib ./smart-tower-base-service/tower-gateway

echo "begin copy tower-auth "
cp ../tower-auth/target/tower-auth.jar ./smart-tower-base-service/tower-auth
cp -r ../tower-auth/target/lib ./smart-tower-base-service/tower-auth

#echo "begin copy tower-visual "
#cp ../tower-visual/tower-monitor/target/tower-visual-monitor.jar  ./smart-tower/visual/monitor/jar

echo "begin copy tower-modules-system "
cp ../tower-modules/tower-modules-system/target/tower-system.jar ./smart-tower-base-service/tower-system
cp -r ../tower-modules/tower-modules-system/target/lib ./smart-tower-base-service/tower-system

echo "begin copy tower-modules-device "
cp ../tower-modules/tower-modules-device/target/tower-device.jar ./smart-tower-base-service/tower-device
cp -r ../tower-modules/tower-modules-device/target/lib ./smart-tower-base-service/tower-device


echo "begin copy tower-modules-media "
cp ../tower-modules/tower-modules-media/target/tower-media.jar ./smart-tower-base-service/tower-media
cp -r ../tower-modules/tower-modules-media/target/lib ./smart-tower-base-service/tower-media

#echo "begin copy tower-modules-file "
#cp ../tower-modules/tower-file/target/tower-file.jar ./smart-tower/modules/file/jar

#echo "begin copy tower-modules-job "
#cp ../tower-modules/tower-job/target/tower-job.jar ./smart-tower/modules/job/jar

#echo "begin copy tower-modules-gen "
#cp ../tower-modules/tower-gen/target/tower-gen.jar ./smart-tower/modules/gen/jar

